package com.hsgene.consumables.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;

import java.io.Serializable;
import java.util.Date;

/**
 * 库存列表信息dto
 *
 * @author wxf
 * @date 2018/8/15 13:56
 **/
public class ConsumablesInventoryInfoDto implements Serializable {

    private Integer number;

    private String id;
    /**
     * 耗材名称
     */
    private String name;
    /**
     * 当前库存
     */
    private int amount;

    /**
     * 预警值
     */
    private int warningAmount;

    /**
     * 进货单位
     */
    private String stockUnit;

    /**
     * 单位id
     */
    private String unitId;
    /**
     * 出货单位
     */
    private String convertUnit;
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date updateDateTime;
    /**
     * 规格
     */
    private int specification;


    private Integer isUsed;

    public Integer getIsUsed() {
        return isUsed;
    }

    public void setIsUsed(Integer isUsed) {
        this.isUsed = isUsed;
    }

    public Date getUpdateDateTime() {
        return updateDateTime;
    }

    public void setUpdateDateTime(Date updateDateTime) {
        this.updateDateTime = updateDateTime;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public int getWarningAmount() {
        return warningAmount;
    }

    public void setWarningAmount(int warningAmount) {
        this.warningAmount = warningAmount;
    }


    public String getStockUnit() {
        return stockUnit;
    }

    public void setStockUnit(String stockUnit) {
        this.stockUnit = stockUnit;
    }

    public String getConvertUnit() {
        return convertUnit;
    }

    public void setConvertUnit(String convertUnit) {
        this.convertUnit = convertUnit;
    }

    public int getSpecification() {
        return specification;
    }

    public void setSpecification(int specification) {
        this.specification = specification;
    }

    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }
}
